project( ICENETWORK )
cmake_minimum_required( VERSION 2.6 )
set( LOCATION_DIR /opt/local )
set( CMAKE_CXX_FLAGS )
set( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${LOCATION_DIR}/lib )
set( CMAKE_INSTALL_PREFIX ${LOCATION_DIR} )
add_definitions( -O2 -Wall -DUSE_NET_BYTE )


include_directories( ${LOCATION_DIR}/include/ )
aux_source_directory( . ICE_NETWORK_DIR )

add_library( icenetwork SHARED ${ICE_NETWORK_DIR} )
#set_target_properties( icenetwork PROPERTIES VERSION 1.0 SOVERSION 1 )

INSTALL ( FILES Buffer.h Epollor.h EpollChannel.h IOStream.h Socket.h 
    DESTINATION ${LOCATION_DIR}/include/network )
